<template>
	<view>
		<Ycqh v-if="item.release_info.release_type == '1'" :item="item"></Ycqh>
		<!-- item.release_info.release_type 1 有车求货 2 有货求车 -->
		<Yhqc v-if="item.release_info.release_type == '2'" :item="item"></Yhqc>
		<!-- human_type 1 货源信息  2 快递公司 -->
		<Hyxx v-if="item.release_info.release_type == '3' && item.release_info.human_type == '1'" :item="item"></Hyxx>
		<!-- human_type 1 货源信息  2 快递公司 -->
		<Kdgs v-if="item.release_info.release_type == '3' && item.release_info.human_type == '2'" :item="item"></Kdgs>
	</view>
</template>

<script>
	import Kdgs from "./Transport/Kdgs.vue"
	import Hyxx from "./Transport/Hyxx.vue"
	import Yhqc from "./Transport/Yhqc.vue"
	import Ycqh from "./Transport/Ycqh.vue"
	
	import {
		IMAGE_URL,
		HTTP_IMG_UTL
	} from '@/config/app'
	import {
		ImageUrl,
		isBase64
	} from "@/common/public";
	export default {
		props: {
			item: {
				type: Object,
				default: {},
			},
		},
		data() {
			return {
				HTTP_IMG_UTL
			}
		},
		components: {
			Kdgs,
			Hyxx,
			Yhqc,
			Ycqh
		},
		computed: {
			toImages() {
				return (src) => {
					return isBase64(src) ? src : IMAGE_URL + src
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		width: 90%;
		box-shadow: 0 0 10px #ddd;
		border-radius: 10px;
		padding: 10px 12px;
		margin: 0 auto;
		margin-bottom: 20rpx;
		font-size: 30rpx;
		position: relative;
		color: #262626;

		.lineP {
			display: flex;
			margin-top: 30rpx;

			&>view {
				margin-right: 20rpx;
			}

			.price {
				color: #ff1010;
				font-size: 34rpx;

				text {
					margin-left: 8rpx;
					font-size: 24rpx;
				}

				.black {
					color: #262626;
				}
			}
		}

		.title {
			font-weight: 600;
			font-size: 35rpx;
			line-height: 70rpx;
		}

		.titleContent {
			color: #666666;
			letter-spacing: 4rpx;
			line-height: 45rpx;
		}

		.produceImg {
			position: absolute;
			bottom: 20rpx;
			right: 20rpx;
		}
	}
</style>